
<table id="form" align="center" cellpadding="4" cellspacing="0" width="90%">
<tbody><tr id="header"><td colspan="2">&nbsp;Добавить Сообщение&nbsp;</td></tr>
<tr id="firstline">
<td><font class="title">*Имя:</font>
</td>
<td align="right"><input type=text name='name' value='<?=$namesave;?>'></td>
<?$i=0;foreach($addfild as $key=>$val){ $i++;?>
  <tr id="<?if($i%2==0){?>secondline<?}else{?>firstline<?}?>">
  <td><font class="title"><?if(in_array($val,$_GLOBALS['cnf']['noempty'])){print"*";}?><?=$key;?></font>
  </td>
  <td ><input type=text name='<?=$val;?>' value='<?=$addfildsave[$val];?>'></td>
  </tr>
<?}?>
<tr id="firstline">
<td><font class="title">*Текст</font>
</td>
<td align="right"><textarea name='text' rows=8 cols=50></textarea></td>
<tr id="secondline">
<td><font class="title"><?=$img;?></font>
</td>
<td align="right"><input type=text name='img' size=5></td>
<tr id="footer" align="center">
<td colspan="2" nowrap="nowrap">
<input type='submit' class='button' name='done' value='Добавить' >
</td>
</tr>
</tbody></table><br><br>

